/* DAILY PULSE Styles — scoped to section */
#daily-pulse {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* .main-card styles removed — now managed centrally in Menu dashboard/style.css */
/* .main-card {
    width: 686px;
    height: 611px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 25px 37px 37px 37px;
    display: flex;
    flex-direction: column;
} */

/* Goal Section */
.goal-section {
    margin-bottom: 37px;
}

.goal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 25px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 12px;
}

/* Progress Bar */
.dp-progress-container {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 1 !important; /* Force visible */
}

.dp-progress-bar {
    width: 613px;
    height: 32px;
    background-color: rgba(61, 16, 16, 0.4);
    border-radius: 9px;
    position: relative;
    overflow: hidden;
}

.dp-progress-fill {
    height: 100%;
    background: #76D18B;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    position: relative;
}

.dp-progress-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1A3A22;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.dp-progress-hint {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 15px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 351px 249px;
    gap: 9px;
    flex: 1;
}

/* Focus Card */
.focus-card {
    background: #F86466;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 351px;
    height: 410px;
}

.card-header {
    width: 100%;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

/* Legend */
.legend {
    display: flex;
    gap: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.focus-color {
    background: #76D18B;
}

.block-color {
    background: #FFB347;
}

.legend-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Diagram */
.diagram-container {
    width: 227px;
    height: 227px;
    margin-bottom: 23px;
}

.focus-ring {
    width: 100%;
    height: 100%;
}

.diagram-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 38px;
    fill: #FFFFFF;
}

.focus-status {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 25px;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Stats Cards */
.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

.stat-card {
    width: 249px;
    height: 200px;
    background: #F86466;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    /* Slightly smaller to ensure it never overflows */
    color: #FFFFFF;
    margin-bottom: 18px;
    /* Requested 18px spacing below label */
    width: 100%;
    white-space: nowrap;
}

.stat-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 85px;
    color: #FFFFFF;
    line-height: 0.9;
    margin: 0;
    /* Removed old margins to use label's bottom margin */
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-unit {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Animations */
@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: var(--progress-width);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations — scoped to #daily-pulse to avoid leaking to sidebar */
#daily-pulse .goal-title {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

#daily-pulse .dp-progress-container {
    opacity: 1 !important;
    animation: none;
}

#daily-pulse .focus-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
}

#daily-pulse .stat-card:nth-child(1) {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

#daily-pulse .stat-card:nth-child(2) {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1.1s forwards;
}

#daily-pulse .diagram-container {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 1.3s forwards;
}

#daily-pulse .focus-status {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.6s forwards;
}